//
//  rankViewController.swift
//  好书
//
//  Created by WZH on 2018/3/27.
//  Copyright © 2018年 WZH. All rights reserved.
//

import UIKit

class rankViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        let label = UILabel(frame: CGRect(x: 0, y: 0, width: 200, height: 50))
        label.adjustsFontSizeToFitWidth = true
        label.center = self.view.center
        label.textAlignment = .center
        self.view.addSubview(label)
        label.text = "这是一个label"
        label.font = UIFont(name: MY_FONT, size: 20)
        
    }

}
